@selectedBorderColor: #04a17eff;

@nodeBg: #ffffff;

// hover 或者 线选中色
@hoverColor: #ff9500ff;

.reactNode {
  position: relative;
  // display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  background-color: @nodeBg;
  border: 1px solid transparent;
  border-radius: 4px;

  .iconBlock {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-top: 1px;
    text-align: center;
    vertical-align: middle;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 3px;

    i {
      display: inline-block;
      margin-top: 4px;
      font-size: 18px;
      border-radius: 3px;
    }
  }

  .title {
    display: inline-block;
    width: 120px;
    margin-top: 1px;
    padding: 0 8px;
    overflow: hidden;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  .stateIcon {
    position: absolute;
    top: 7px;
    right: 6px;
    display: block;
  }

  &.selected {
    border: 1px solid @selectedBorderColor;
  }
}

// 浮动提示样式
.canvas {
  :global(.aicontent-popover-inner-content) {
    padding: 12px 8px 8px 8px;
  }

  .list {
    min-width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;

    .item {
      display: flex;
      width: 220px;
      margin: 0;
      padding: 0 0 0;
      font-size: 12px;
      line-height: 16px;
      word-break: break-all;
    }

    .label {
      position: relative;
      flex: 1 0 45px;
      padding-right: 4px;
      color: rgba(0, 0, 0, 0.85);
      text-align: right;
      word-break: break-all;
      &after {
        content: ':';
      }
    }

    .text {
      flex: 3 0 100px;
      padding-left: 4px;
      color: rgba(0, 0, 0, 0.45);
      word-break: break-all;
    }
  }
}
